package com.lahuan.demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lahuan.demo.entity.AccountUsd;

import java.math.BigDecimal;

/**
* <p>
* usd账户服务类
* </p>
* @author lahuan
* @since 2022-01-02
*/
public interface AccountUsdService extends IService<AccountUsd> {
    /**
     *  冻结
     * @param userId
     * @param money
     * @param transNo
     */
    void froze(Long userId, BigDecimal money, String transNo);

    /**
     * 转账
     * @param userId
     * @param money
     * @param transNo
     */
    void add(Long userId, BigDecimal money,String transNo);

    /**
     * 回滚
     * @param userId
     * @param money
     * @param transNo
     */
    void rollback(Long userId, BigDecimal money,String transNo);
}
